#include <iostream>
#include <vector>

using std::cout;
using std::endl;
using std::vector;

void test()
{
    vector<int> vec;
    vec.reserve(3);
    cout << "size() = " << vec.size() << endl;
    cout << "capacity() = " << vec.capacity() << endl;

    cout << endl;
    vec.push_back(1);
    cout << "size() = " << vec.size() << endl;
    cout << "capacity() = " << vec.capacity() << endl;

    cout << endl;
    vec.push_back(2);
    cout << "size() = " << vec.size() << endl;
    cout << "capacity() = " << vec.capacity() << endl;

    cout << endl;
    vec.push_back(3);
    cout << "size() = " << vec.size() << endl;
    cout << "capacity() = " << vec.capacity() << endl;

    cout << endl;
    vec.push_back(4);
    cout << "size() = " << vec.size() << endl;
    cout << "capacity() = " << vec.capacity() << endl;
}

int main(int argc, char *argv[])
{
    test();
    return 0;
}

